package com.sunthy.mall.service.admin.admin;

import com.sunthy.mall.model.admin.bo.admin.AdminChangePwd;
import com.sunthy.mall.model.admin.pojo.admin.Admin;
import com.sunthy.mall.model.admin.bo.admin.AdminAddBo;
import com.sunthy.mall.model.admin.bo.admin.AdminLoginBo;
import com.sunthy.mall.model.admin.bo.admin.AdminSearchBo;
import com.sunthy.mall.model.admin.vo.admin.AllAdminVO;

import java.util.List;

public interface AdminService {
    // 通过传入一个AdminLoginBo对象
    // 返回登录的状态码
    int login(AdminLoginBo loginBo);

    List<AllAdminVO> allAdmins();

    int add(AdminAddBo adminAddBo);

    Admin getAdminInfo(Integer id);

    int update(AllAdminVO allAdminVO);

    int delete(int id);

    List<AllAdminVO> searAllAdmins(AdminSearchBo adminSearchBo);

    /**
     * 修改admin密码
     * @param adminChangePwd
     */
    int updatePwd(AdminChangePwd adminChangePwd);

}
